Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GUI] Prevent invalid dashboard txs list filter value loaded from settings #2173

Merged

Conversation

furszy
Copy link

@furszy furszy commented Jan 29, 2021

Guard against any not expected transactionType value retrieved from the setting that doesn't map to any available filter type.

Can be tested changing the value manually inside the settings file and starting the wallet again, the tx filter type combobox will be shown empty without this fix.

…nknown values.

Preventing any possible not expected `transactionType` value stored that doesn't map with any available filter.
@furszy furszy self-assigned this Jan 29, 2021
Copy link

@random-zebra random-zebra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK a3eea8c

@random-zebra random-zebra added this to the 5.1.0 milestone Jan 29, 2021
Copy link
Collaborator

@Fuzzbawls Fuzzbawls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be good enough for the most common cause of this issue. In rare circumstances I have seen the settings cache be set at some insane int value (ex: 3854851), but don't remember the exact circumstances that caused it.

If this remains an issue after this PR, we could enumerate the valid values and verify that the current cached setting is within that valid range, but might be overkill for now, so...

utACK a3eea8c

@furszy furszy merged commit 70ac797 into PIVX-Project:master Jan 30, 2021
@furszy furszy deleted the 2020_GUI_guard_filter_invalid_data branch November 29, 2022 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants